How to find locus of a point